<?
	require_once "pi_comet.php";
	
	$stream = new PIComet($_GET["PICometMethod"],$_GET["PICometName"]);
	
	header("Content-type:".$stream->header);
	
	$messages = Array("If the number's there I'll find it!","Something's going on.","It has to do with that number.","There's an answer in that number.","You see the simplicity of the circle.","Mathematics is the language of nature","Everything around us can be represented and understood through numbers","If you graph these numbers, patterns emerge.","Therefore: There are patterns everywhere in nature.");
	
	for($i=0; $i<15; $i++){
		print $stream->push( time() . " " . $messages[rand(0,count($messages)-1)]  );
		ob_flush();
		flush();
		sleep(1);
	}
?>